package com.example.leavemanagement.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 请假信息
 * @TableName leave_info
 */
@TableName(value ="leave_info")
@Data
public class LeaveInfo implements Serializable {
    /**
     * 请假信息ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 请假相关文件或说明URL（如附件链接）
     */
    @TableField(value = "leaveReason")
    private String leaveReason;

    /**
     * 请假名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 请假类型
     */
    @TableField(value = "category")
    private String category;

    /**
     * 活动地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 申请人ID
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 申请时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 编辑时间
     */
    @TableField(value = "editTime")
    private Date editTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    /**
     * 审核状态：0-待审核; 1-通过; 2-拒绝
     */
    @TableField(value = "reviewStatus")
    private Integer reviewStatus;

    /**
     * 审核信息
     */
    @TableField(value = "reviewMessage")
    private String reviewMessage;

    /**
     * 审核人ID
     */
    @TableField(value = "reviewerId")
    private Long reviewerId;

    /**
     * 审核时间
     */
    @TableField(value = "reviewTime")
    private Date reviewTime;

    /**
     * 空间Id
     */
    @TableField(value = "spaceId")
    private Long spaceId;

    /**
     * 部门
     */
    @TableField(value = "section")
    private String section;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}